<?php

use App\Models\Panx\ProductImage;
use Faker\Generator as Faker;
use Illuminate\Http\UploadedFile;

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Panx\ProductImage::class, function (Faker $faker) {
    return [
        'product_id' => $faker->numberBetween(1, 1200),
        'key'        => UploadedFile::fake()->create('thumb.jpg'),
        'type'       => ProductImage::TYPE_THUMB,
    ];
});
